import http from '@/module/io/http'
// const perfix = '/dgh'
const perfix = ''
/* 获取收支明细列表 */
export const getbillList = async (params) => {
  let res = await http.get(`${perfix}/bill`, { params })
  return res
}
/* 获取用户列表 */
export const queryUserList = async (params) => {
  let res = await http.get(`${perfix}/users/list-paging`, { params })
  return res
}
/* 获取账户总收入支出 */
export const queryTotalList = async () => {
  let res = await http.get(`${perfix}/bill/total`)
  return res
}
/* 年收入支出趋势 */
export const queryChartbyYear = async (params) => {
  let res = await http.get(`${perfix}/bill/chart/year`, { params })
  return res
}
/* 资源消费分布饼图-数量统计 */
export const queryProcessScene = async (params) => {
  const res = await http.get(`${perfix}/projects/overview/process/scene`, { params })
  return res
}
